
<table>
  <tr>
  <% for column in TicketTemplate.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for ticket_template in @ticket_templates %>
  <tr>
  <% for column in TicketTemplate.content_columns %>
    <td><%=h ticket_template.send(column.name) %></td>
  <% end %>
    <td><%= link_to "Duplicate", duplicate_ticket_template_path(ticket_template), :method => :post %></td>
    <td><%= link_to 'Edit', edit_ticket_template_path(ticket_template) %></td>
    <td><%= link_to 'Destroy', ticket_template_path(ticket_template), :method => :delete, :confirm => 'Are you sure?'  %></td>    
  </tr>
<% end %>
</table>


<br />

<%= link_to 'New ticket template', new_ticket_template_path %>
